<template>
    <div>我是一个盒子</div>
</template>
<script lang="ts">
export default{
    beforeDestroy() {
        console.log('死亡前')
    },
    destroyed() {
        console.log('死亡')
    },
}
</script>